import service from '@/utils/request'

export const useDataApi = async (url: string) => {
	const { data } = await service.get(url)

	return data
}

export type BaseResult = {
	code: number
	message: string
	data: any
}
export const prefix = '/api/v1'
